#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#if 0
static void float_p(void)
{
	/* 浮点数在内存中存储很特殊 */	
	int i = 0x12345678;
	
	float a = 1.2;
	unsigned char *p1;
	int *p = &a;
	printf("%d\n", *p);
	printf("%#x\n", *p);

	p1 =  &i;
	printf("%#x\n", *p1);

	p1 =  &a;
	printf("%#x\n", *p1);
}


static void pointer_call_on(void)
{
	int a = 0x12345678;
	int b = 0x11223344;

	int *p = &a;
	char *p1 = (char *)&b;

	printf("&a = %p &b = %p\n", &a, &b);
	printf("%#x %#x\n", *p, *(p + 1));//*p == a; *(p + 1) == b 符合栈的特性 先进后出
	printf("%#x %#x %#x\n", *p1, *(p1 + 1), p1[2000000000000]);/* 指针如果不限制大小可以无限指向,如果访问了不可访问的地址就会出现段错误 */

}
#endif

int main(void)
{

	return 0;
}

